<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<%@ include file="/common/taglibs.jsp" %>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>查询</title>

    <%@ include file="/common/util.jsp" %>

    <script type="text/javascript" src="${cdnctx }/src/statistics/countone.js"></script>
    <script type="text/javascript" src="${cdnctx }/src/statistics/date.js"></script>
    <script type="text/javascript">
        function printdiv() {
            var param = {
                "customerinfoid": $("#customerinfoid").val(),
                "startDate": $("#startDate").val(),
                "endDate": $("#endDate").val()
            };
            window.open("countonepreview.shtml?" + parseParam(param));
        }
    </script>
</head>

<body class="main">
<div class="-frame -style -luster" id="css_container">

    <!--首页框架页眉部分↓-->
    <%@ include file="/WEB-INF/pages/inc/header.jsp" %>
    <!--首页框架页眉部分↑-->

    <div class="content">
        <!-- Left导航菜单◎开始 -->
        <%@ include file="/WEB-INF/pages/inc/leftmenu.jsp" %>
        <!-- Left导航菜单◎结束 -->
        <input type="hidden" class="form-control" id="sessionCustomerName" value="${customername }">

        <div class="main-mid">
            <div class="pos"><img src="${cdnctx}/src/index/img/index.png"><a href="">数据报表 ></a><a href="#">单店能源分析</a>
            </div>
            <form class="form-inline" style="min-width:700px;margin-left: 20px;margin-top: 20px;">
                <label class="search_text">客户：</label>
                <input type="hidden" class="search_input" id="customerinfoid">
                <input type="hidden" class="search_input" id="companyCode">
                <input type="text" style="cursor: pointer;" readonly class="search_input" id="companyName"
                       value="${customername}" placeholder="双击选择客户">
                <label class="search_text">开始日期：</label>
                <input type="text" style="cursor: pointer;" readOnly class="search_input Wdate" id="startDate"
                       onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd'})">
                <label class="search_text">结束日期：</label>
                <input type="text" style="cursor: pointer;" readOnly class="search_input Wdate" id="endDate"
                       onfocus="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd'})">
                &nbsp;&nbsp;<input type="radio" name="shortcut" onclick="getlastweek()"/>前一周
                &nbsp;&nbsp;<input type="radio" name="shortcut" onclick="getlastmonth()"/>前一月
                <input type="button" class="search_btn" id="searchEnergy" value="查&nbsp;询"/>
                <input type="button" class="reset_btn" value="打&nbsp;印" onclick="printdiv('maindata','单店能源分析')"/>
            </form>
            <%--<div id="maindata" class="main-mid" style="left: 20px;overflow: hidden;">--%>
            <div style="margin-left: 40px;margin-right:40px; margin-top: 30px;overflow: auto;">
                <div style="float: left; width:100%;">
                    <table class="list_table left">
                        <tr>
                            <td>
                                <span class="search_text">番号：<span id="code"></span></span>
                            </td>
                            <td>
                                <span class="search_text">地址：<span id="address"></span></span>
                            </td>
                            <td rowspan="2">
                                <span class="search_text"><span>${customerInfoData.province}门店耗电量排名：<span id="position"
                                                                                                          style="font-size: 20px; color: red;font-weight: bold;"></span></span>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span class="search_text">人数：<span id="acreage"></span></span>
                            </td>
                            <td>
                                <span class="search_text">面积(m²)：<span id="squares"></span></span>
                            </td>
                        </tr>
                    </table>
                </div>
                <%--</div>--%>
            </div>
            <div id="onenengycontainer" class="main-chart"></div>
            <div id="regioncontainer" class="main-chart"></div>
        </div>
    </div>
    <!--首页框架页尾部分↓-->
    <%@ include file="/WEB-INF/pages/inc/footer.jsp" %>
    <!--首页框架页尾部分↑-->
</div>
</body>
</html>